package Code.StringTraverse;
//手机号屏蔽
public class Test5 {
    public static void main(String[] args) {
        String phoneNumber = "13409745366";

        //截取手机号码前三位
        String start = phoneNumber.substring(0,3);
        System.out.println(start);

        //截取手机号码前后四位
        String end = phoneNumber.substring(7);


        System.out.println(start+"****"+end);
    }
}
